package com.chenfy.everysound.net

import com.chenfy.everysound.entity.SoundEntity
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Streaming
import retrofit2.http.Url

interface ISoundService {
    @GET("sound.json")
    suspend fun getSounds(): List<SoundEntity>

    @Streaming
    @GET
    suspend fun downloadSound(@Url url: String): ResponseBody
}